
package com.scalar.chiptrack.operations;


import java.sql.Date;


public final class LotNumberQtyAndDateOut {
    
    private String m_lotNumber = null;
    private int m_quantity = 0;
    private Date m_expectedDateOut = null;
    private String m_status = null;
    private int m_lotId = 0;
    private java.util.Date m_fgDate_out= null;
    private int issuedQty = 0;
    private int reservedQty = 0;
    private String processType = "";
    
    public LotNumberQtyAndDateOut(){}
    
    public LotNumberQtyAndDateOut (String lotNumber, int quantity, Date expectedDateOut) {
        m_lotNumber = lotNumber;
        m_quantity = quantity;
        m_expectedDateOut = expectedDateOut;    
    }
    
	public LotNumberQtyAndDateOut (int lotId, int quantity, java.util.Date fgDateOut ) {
		m_lotId = lotId;
		m_quantity = quantity;
		m_fgDate_out = fgDateOut;    
	}
    
    public LotNumberQtyAndDateOut (String lotNumber, int quantity, Date expectedDateOut, String lotStatus) {
        m_lotNumber = lotNumber;
        m_quantity = quantity;
        m_expectedDateOut = expectedDateOut;
        m_status = lotStatus;
    }
    
    public String getLotNumber() {
        return m_lotNumber;
    }

	public void setLotNumber( String lot_number ) 
	{
		m_lotNumber = lot_number ;
	}

	public int getLotId() {
		return m_lotId;
	}
    
    public int getQuantity() {
        return m_quantity;
    }
    
    public Date getExpectedDateOut() {
        return m_expectedDateOut;
    }

	public void setExpectedDateOut( Date dateOut ) {
		m_expectedDateOut = dateOut;
	}

	public java.util.Date getFgDateOut() {
		return m_fgDate_out;
	}
    
    public String getStatus() {
        return m_status;
    }
    
    public String toString() {
        return "Lot Number: " + m_lotNumber + " -> Qty = " + m_quantity + ", Exp Date Out = " + m_expectedDateOut + ", Lot Status = " + m_status;
    }
    
    //Added for setting the qty after reducing the reserved qty -- kumar
    public void setQuantity(int qty)
    {
        m_quantity = qty;
    }
	/**
	 * @return
	 */
	public int getIssuedQty()
	{
		return issuedQty;
	}

	/**
	 * @return
	 */
	public int getReservedQty()
	{
		return reservedQty;
	}

	/**
	 * @param i
	 */
	public void setIssuedQty(int i)
	{
		issuedQty = i;
	}

	/**
	 * @param i
	 */
	public void setReservedQty(int i)
	{
		reservedQty = i;
	}

	/**
	 * @return
	 */
	public String getProcessType()
	{
		return processType;
	}

	/**
	 * @param string
	 */
	public void setProcessType(String string)
	{
		processType = string;
	}

}